Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-user is "dashboardForm">

With this node you can add a dashboardForm to an existing dashboard or a new one created by the node to select numbers in an interval.

Configuration

dashboard string
Dashboard title to which the dashboardForm will be added
widget string
Title that will have the widget containing the dashboardForm.

Inputs

The node accepts in input JSON objects shaped as follows:
    {
        "form": {
            "options": [
                {
                    "label": "enter text",
                    "value": "",
                    "type": "text",
                    "required": true
                },
                {
                    "label": "enter number",
                    "value": "",
                    "type": "number",
                    "required": false
                },
                {
                    "label": "enter email",
                    "value": "",
                    "type": "email",
                    "required": false
                },
                {
                    "label": "enter password",
                    "value": "",
                    "type": "password",
                    "required": false
                },
                {
                    "label": "enter check",
                    "value": "checked",
                    "type": "checkbox",
                    "required": true
                },
                {
                    "label": "enter switch",
                    "value": "on",
                    "type": "switch",
                    "required": false
                },
                {
                    "label": "enter date",
                    "value": "",
                    "type": "date",
                    "required": false
                },
                {
                    "label": "enter time",
                    "value": "",
                    "type": "time",
                    "required": true
                }
            ],
            "selected": []
        }
    }

Outputs

The node produces in output the payload of the received message (the hidden value associated with the writing that the user has clicked on the widget).